<?php 
/*
 module:		版本管理
 create_time:	2022-04-08 16:07:47
 author:		
 contact:		
*/

namespace app\admin\controller\Backend;

use app\admin\service\Backend\VersionService;
use app\admin\model\Backend\Version as VersionModel;
use app\admin\controller\Admin;
use think\facade\Db;

class Version extends Admin {


    public function index(){
 
//        Db::name("config")->where(['name'=>'version'])->update(['data'=>'1.0.0']);
        $config = Db::name("config")->column('data','name');
        $res['content']='';
        $this->view->assign('data',$res);
        $this->view->assign('config',$config);
        return view('index');
    }
    public function test(){
        return json(['status'=>'00','data'=>'','msg'=>'验证成功，正在更新。。。']);
    }

    public function down()
    {
        return json(['status'=>'01','msg'=>'安装包不存在']);

    }



}

